/**
 * @author devin
 * @method POST @param data
 * @method GET  @param params
 * 
 * @title 添加购物车接口
 * @title 获取购物车列表页
 * @title 删除购物车接口
 */
import fetch from '@/utils/request';

// api/user/addCarList?goods_id=1&goods_num=10
export const PostAddCartList = (params: any) => {
  return fetch.get('/api/user/addCarList',  {params})
}

// 获取购物车列表接口
export const GetCartList = () => {
  return fetch.get('/api/user/getCarList')
}

// 删除购物车接口
export const PostDelCartList = (data: any) => {
  return fetch.post('/api/user/delCarList', {data})
}